let data = {
    list: [
        {
            "teacNum": "000010",
            "teacTitle": "0",
            "teacCompile": "0",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "teacName": "数学老师",
            "teacAge": "21",
            "id": "1"
        },
        {
            "teacNum": "000020",
            "teacTitle": "1",
            "teacCompile": "1",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "teacName": "英文老师",
            "teacAge": "33",
            "id": "2"
        },
        {
            "teacNum": "000030",
            "teacTitle": "0",
            "teacCompile": "0",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "teacName": "牛马老师",
            "teacAge": "41",
            "id": "3"
        },
    ]
};

module.exports = [
    //老师列表
    {
        url: "/user/teacher/getTeacherList",
        type: "post",
        response: config => {
            //参数  config.body
            const { pageIndex = 1, pageSize = 10 } = config.body;
            data.pageIndex = pageIndex;
            data.pageSize = pageSize;
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    },

    //添加老师
    {
        url: "/user/teacher/addTeacher",
        type: "post",
        response: config => {
            //参数  config.body
            const teacherInfo = config.body.teacherInfo;
            console.log('add', teacherInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },

    //更新老师
    {
        url: "/user/teacher/updateTeacher",
        type: "post",
        response: config => {
            //参数  config.body
            const teacherInfo = config.body.teacherInfo;
            console.log('update', teacherInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },


    //删除老师
    {
        url: "/user/teacher/deleteTeacher",
        type: "post",
        response: config => {
            //参数  config.body
            const id = config.body.id;
            console.log('del', id);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    }
];
